<extend name="Base/base" />
<block name='head'>
    <link rel="stylesheet" href="/Public/Admin/css/personal.css"/>
    <link href="/Public/Admin/css/new_plan.css" rel="stylesheet" />
    <link rel="stylesheet" type="text/css" href="/Public/Admin/css/style.css" />
    <script src="/Public/static/layer/layer.js"></script>
    <!--文件上传-->
    <script type="text/javascript" src="/Public/Cropper/js/ajaxfileupload.js" ></script>
    <style>
        body{font-size:15px}
        .textarea{height:50px;width:90%}
        .checkCont p{float:left;}
        .checkCont a{margin-left:10px;display: inline-block;}
        .fujian{margin:0;}
        .c-red{color:red}
        .right .iconfont {font-size:24px; color:#158CEA;}
    </style>
</block>
<block name="content"> 
    <section class="layui-larry-box">
        <div class="larry-personal">
            <div class="layui-tab">
                <p class="nav-title">
                    <!--<a class="newsAdd_btn" title="返回" href="javascript:history.go(-1)"><img src="/Public/Admin/images/back.png" /></a>-->
                    <a href="{:U('Flow/lists')}"><span>我的流程</span></a> &nbsp;> &nbsp;选择流程
                </p>
                <div class="cont">
                    <div class="left">
                        <a class="pointer flowType flowNav-first active" data-id="0"><p><img src="/Public/Admin/images/flow0.png" />常用工作</p></a>
                        <foreach name="flowTypes" item="type" key="key">
                            <a class="pointer flowType flowNav" data-id="{$type.sort_id}"><p><img src="/Public/Admin/images/flow{$key+1}.png" />{$type.sort_name}</p></a>
                        </foreach>
                        <input type="hidden" class="flowTypeUrl" value="{:U('getFlowType')}">
                    </div>
                    <div class="right">
                        <div class="r-cont">
                            <!--<p>常用工作</p>-->
                            <foreach name='flows' item='flow' key="key">
                                <div class="list">
                                    <div class="l-left">
                                        <i class="iconfont">&#x{$flow.icon};</i>
                                        {$flow.flow_name}
                                    </div>
                                    <div class="l-right"><a href="{:U('Flow/form',array('id'=>$flow['form_id'],'flow_id'=>$flow['flow_id']))}">快速新建</a></div>
                                    <div class="l-middle">
                                        <span class="showChart pointer" data-id="{$flow.flow_id}"><img src="/Public/Admin/images/design.png" /> 流程设计图</span>
                                        <span class="pointer explain" data-id="{$flow.flow_id}"><img src="/Public/Admin/images/flow.png" /> 流程说明</span>
                                    </div>                
                                </div>
                            </foreach>

                        </div>
                    </div>
                </div>

            </div>
        </div>

    </section>
</block>
<block name="script">
    <script type="text/javascript" src="/Public/Admin/js/flow.js"></script>
    <script type="text/javascript">
        $(initFlowType());

    </script>    
</block>
